package pattern.responsibilitychain;

public abstract class Handler {
    protected Handler nextHandler = null;
    String des="handler";
    public Handler getNextHandler() {
        System.out.println(des);
        return nextHandler;
    }

    public void setNextHandler(Handler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract String dispose(String user , double fee);
}
